import Vue from "vue";
import Router from "vue-router";
import studyCenter from "./views/studyCenter/studyCenter.vue";
import enter from "./views/enter/enter.vue";
import guide from "./views/guide/guide.vue";
import exam from "./views/exam/exam.vue";
import result from "./views/result/result.vue";
import examList from "./views/studyCenter/examList/examList.vue";
import message from "./views/studyCenter/message/message.vue";
import member from "./views/member/member.vue";
import Chapters from "./views/chapter/chapter.vue";
import login from "./views/login/login.vue";
import register from "./views/register/register.vue";
import intermediateEnter from "./views/intermediateExam/Before.vue";
import intermediateExam from "./views/intermediateExam/Exam.vue";
import intermediateEnd from "./views/intermediateExam/End.vue";
import progressList from './views/studyCenter/progressList/progressList.vue'
import errorTestList from './views/chapter/errorTestList.vue'
Vue.use(Router);

export default new Router({
  // mode: 'history',
  routes: [
    {
      path: "/",
      name: "register",
      component: register
    },
    {
      path: "/login",
      name: "login",
      component: register
    },
    {
      path: "/register",
      name: "register",
      component: register
    },
    {
      path: "/member",
      name: "member",
      component: member
    },
    {
      path: "/studyCenter",
      name: "studyCenter",
      component: studyCenter
    },
    {
      path: "/studyCenter/progressList",
      name: "progressList",
      component: progressList
    },
    {
      path: "/studyCenter/chapter",
      name: "chapter",
      component: examList
    },
    {
      path: "/studyCenter/practice",
      name: "practice",
      component: examList
    },
    {
      path: "/studyCenter/zhenti",
      name: "zhenti",
      component: examList
    },
    {
      path: "/enter",
      name: "enter",
      component: enter
    },
    {
      path: "/guide",
      name: "guide",
      component: guide
    },
    {
      path: "/exam",
      name: "exam",
      component: exam
    },
    {
      path: "/result",
      name: " ",
      component: result
    },
    {
      path: "/message",
      name: "message",
      component: message
    },
    {
      path: "/chapter",
      name: "chapters",
      component: Chapters
    },
    {
      path:'/errorTestList',
      name:'errorTestList',
      component:errorTestList
    },
    {
      path: "/intermediateEnter",
      name: "intermediateEnter",
      component: intermediateEnter
    },
    {
      path: "/intermediateExam",
      name: "intermediateExam",
      component: intermediateExam
    },
    {
      path: "/intermediateEnd",
      name: "intermediateEnd",
      component: intermediateEnd
    }
  ]
});
